<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
	
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css"
	href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css"
	rel="stylesheet" />
<title>Student View Page</title>
</head>
<body>
<c:set var="str" value="${type}"/>   
<jsp:useBean id="str" type="java.lang.String" class="java.lang.String" />

	<%!private String temp = "Matt";%>
	<nav class="navbar navbar-inverse" role="navigation">
	<ul class="nav navbar-nav">
		<c:if test='<%=str.equalsIgnoreCase("student")%>'>
		<li class="active"><a
			href="${pageContext.request.contextPath}/register/list/${student.studentID}/${schedule.scheduleID}.html">Job-listing</a></li>
		</c:if>
			<c:if test='<%=str.equalsIgnoreCase("faculty")%>'>
		<li class="active"><a
			href="${pageContext.request.contextPath}/student/list.html">Student List</a></li>
		</c:if>
	</ul>

	<ul class="nav navbar-nav navbar-right">
	<c:if test='<%=str.equalsIgnoreCase("student")%>'>
		<li><a href="${pageContext.request.contextPath}/student/edit/${student.studentID}.html">Edit</a></li>
	</c:if>
	<c:if test='<%=str.equalsIgnoreCase("faculty")%>'>
		<li><a href="${pageContext.request.contextPath}/student/delete/${student.studentID}/${schedule.scheduleID }.html">Delete</a></li>
	</c:if>
	</ul>
	</nav>
		<br />
		<br />
		<br />

		<div class="panel panel-default">
			<div class="panel-heading">Name</div>
			<div class="panel-body">
				<p>First Name: ${student.firstName}</p>
				<p>Last Name: ${student.lastName}</p>
			</div>
		</div>


		<div class="panel panel-default">
			<div class="panel-heading">Personal Information</div>
			<div class="panel-body">
				<p>Date of Birth: ${student.dateOfBirth}</p>
				<p>Gender: ${student.gender}</p>
				<p>Email: ${student.email}</p>
			</div>
		</div>

		<div class="panel panel-default">
			<div class="panel-heading">Schedule:</div>
			<div class="panel-body">
				<table>
					<tr>
						<td>Monday:</td>
						<td>${schedule.mondayFrom}To:${schedule.mondayTo}</td>
					</tr>
					<tr>
						<td>Tuesday:</td>
						<td>${schedule.tuesdayFrom}To:${schedule.tuesdayTo}</td>
					</tr>
					<tr>
						<td>Wednesday:</td>
						<td>${schedule.wednesdayFrom}To:${schedule.wednesdayTo}</td>
					</tr>
					<tr>
						<td>Thursday:</td>
						<td>${schedule.thursdayFrom}To:${schedule.thursdayTo}</td>
					</tr>
					<tr>
						<td>Friday:</td>
						<td>${schedule.fridayFrom}To:${schedule.fridayTo}</td>
					</tr>
					<tr>
						<td>Saturday:</td>
						<td>${schedule.saturdayFrom}To:${schedule.saturdayTo}</td>
					</tr>
					<tr>
						<td>Sunday:</td>
						<td>${schedule.sundayFrom}To:${schedule.sundayTo}</td>
					</tr>




				</table>
			</div>
		</div>

</body>
</html>